package com.itheima.mapper;

import com.itheima.pojo.Order;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;
import java.util.Set;

public interface UserMapper {

    User findUserByUserName(@Param("username") String username);

    Set<Role> findRolesByUid(@Param("uid") Integer uid);

    Set<Permission> findPermissionsByRoleId(@Param("rid") Integer rid);
}
